<!DOCTYPE html>
<html>
<head>
    <title></title>
		<#include "/header.html">
</head>
<body>
<div id="rrapp" v-cloak>
    <div v-show="showList">
        <div class="grid-btn">
			<#if shiro.hasPermission("work:workdaily:save")>
            <a class="btn btn-primary" @click="add"><i class="fa fa-plus"></i>&nbsp;新增</a>
			</#if>
			<#if shiro.hasPermission("work:workdaily:update")>
            <a class="btn btn-primary" @click="update"><i class="fa fa-pencil-square-o"></i>&nbsp;修改</a>
			</#if>
			<#if shiro.hasPermission("work:workdaily:delete")>
            <a class="btn btn-primary" @click="del"><i class="fa fa-trash-o"></i>&nbsp;删除</a>
			</#if>
        </div>
        <table id="jqGrid"></table>
        <div id="jqGridPager"></div>
    </div>

    <div v-show="!showList" class="panel panel-default">
        <div class="panel-heading">{{title}}</div>
        <form class="form-horizontal">
					<div class="form-group">
                        <div class="col-sm-2 control-label">姓名</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="workDaily.name" placeholder="姓名"/>
                        </div>
                    </div>
                    <div class="form-group">
                        <div class="col-sm-2 control-label">工作日期</div>
                        <div class="col-sm-10">
                            <input id="workDate" type="text" class="demo-input form-control" v-model="workDaily.workDate" placeholder="请选择日期">
                        </div>
                    </div>
                    <div class="form-group">
						<div class="col-sm-2 control-label">所属部门</div>
						<div class="col-sm-10">
							<input type="text" class="form-control" style="cursor:pointer;" v-model="workDaily.deptName" @click="deptTree" readonly="readonly" placeholder="所属部门"/>
						</div>
					</div>
					<div class="form-group">
                        <div class="col-sm-2 control-label">计划任务</div>
                        <div class="col-sm-10">
                            <!-- <input type="text" class="form-control" v-model="workDaily.planTask" placeholder="计划任务"/> -->
                            <textarea  class="form-control"  v-model="workDaily.planTask" placeholder="计划任务"></textarea>
                        </div>
                    </div>
					<div class="form-group">
                        <div class="col-sm-2 control-label">实际任务</div>
                        <div class="col-sm-10">
                            <!-- <input type="text" class="form-control" v-model="workDaily.actualTask" placeholder="实际任务"/> -->
                            <textarea  class="form-control"  v-model="workDaily.actualTask" placeholder="实际任务"></textarea>
                        </div>
                    </div>
					<div class="form-group">
                        <div class="col-sm-2 control-label">工作总结</div>
                        <div class="col-sm-10">
                            <!-- <input type="text" class="form-control" v-model="workDaily.workSummary" placeholder="工作总结"/> -->
                            <textarea  class="form-control"  v-model="workDaily.workSummary" placeholder="工作总结"></textarea>
                        </div>
                    </div>
					<div class="form-group">
                        <div class="col-sm-2 control-label">问题</div>
                        <div class="col-sm-10">
                            <!-- <input type="text" class="form-control" v-model="workDaily.problem" placeholder="问题"/> -->
                            <textarea  class="form-control"  v-model="workDaily.problem" placeholder="问题"></textarea>
                        </div>
                    </div>
					<div class="form-group">
                        <div class="col-sm-2 control-label">明天计划</div>
                        <div class="col-sm-10">
                            <!-- <input type="text" class="form-control" v-model="workDaily.tomorrowPlan" placeholder="明天计划"/> -->
                            <textarea  class="form-control"  v-model="workDaily.tomorrowPlan" placeholder="明天计划"></textarea>
                        </div>
                    </div>
					<div class="form-group">
                        <div class="col-sm-2 control-label">工作建议</div>
                        <div class="col-sm-10">
                            <!-- <input type="text" class="form-control" v-model="workDaily.advise" placeholder="工作建议"/> -->
                    		<textarea  class="form-control"  v-model="workDaily.advise" placeholder="工作建议"></textarea>
                        </div>
                    </div>
					<!-- <div class="form-group">
                        <div class="col-sm-2 control-label">创建人id</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="workDaily.userId" placeholder="创建人id"/>
                        </div>
                    </div>
					<div class="form-group">
                        <div class="col-sm-2 control-label">创建时间</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="workDaily.createTime" placeholder="创建时间"/>
                        </div>
                    </div>
					<div class="form-group">
                        <div class="col-sm-2 control-label">创建者名字</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="workDaily.createName" placeholder="创建者名字"/>
                        </div>
                    </div> -->
					<div class="form-group">
		                <div class="col-sm-2 control-label"></div>
		                <input type="button" class="btn btn-primary" @click="saveOrUpdate" value="确定"/>
		                &nbsp;&nbsp;<input type="button" class="btn btn-warning" @click="reload" value="返回"/>
		            </div>
        </form>
    </div>
</div>

<!-- 选择部门 -->
<div id="deptLayer" style="display: none;padding:10px;">
	<ul id="deptTree" class="ztree"></ul>
</div>

<script src="${request.contextPath}/statics/js/modules/work/workdaily.js?_${.now?long}"></script>
</body>
</html>